package com.cneport.transfer.router.support;

import java.util.UUID;

public class IDGenerator {
    public static String generatorID() {
        String id = UUID.randomUUID().toString();// 调用UUID类的生成UUID方法
        id = id.replace("-", "");// 替换掉UUID中的“_”
        return id;// 返回生成的UUID
    }
    public static void main(String[] args){
        System.out.println(generatorID().length());
    }
}
